package com.zjj.filmcommentapi.dao;

import com.zjj.filmcommentapi.model.Movie;
import com.zjj.filmcommentapi.model.MovieKey;
import com.zjj.filmcommentapi.model.MovieWithBLOBs;
import org.springframework.stereotype.Repository;

@Repository
public interface MovieMapper {
    int deleteByPrimaryKey(MovieKey key);

    int insert(MovieWithBLOBs record);

    int insertSelective(Movie record);

    MovieWithBLOBs selectByPrimaryKey(MovieKey key);

    int updateByPrimaryKeySelective(MovieWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(MovieWithBLOBs record);

    int updateByPrimaryKey(Movie record);
}